<template>
  <div class="container">
    <div class="fixed-header">
      <div class="searchDiv">
        <div class="input-wrap">
          <p class="input-text">
            <i class="fa fa-search"></i>
            <input type="search"
                   placeholder="搜索"
                   v-model="params.searchContent"
                   ref="searchInput">
          </p>
        </div>
      </div>
    </div>
    <mt-tab-container v-model="selected"
                      :class="'page-part'">
      <mt-tab-container-item id="pageA">
        <ul class="confirm-list"
            v-infinite-scroll="findCusPreList"
            infinite-scroll-disabled="loading"
            infinite-scroll-distance="10">
          <li v-for="item in confirmList"
              v-if="item.rowShow">
            <div class="confirm-wrap">
              <div class="confirm-info">
                <div @click="toCustomerDetail(item.id, item.premisesId)">
                  <i class="fa fa-user-o"></i>
                  <span class="name">{{item.name}}</span>
                  <span class="sex"
                        :class="{active: (item.gender==0)}"></span>
                  <span class="label">{{item.customerStatusName}}</span>
                </div>
                <a class="button-small copy-btn"
                   :class="{'copy-btn-copyed': item.copyCount>0}"
                   @click="toCopy(item)">复制</a>
              </div>
              <p class="contact">
                <i class="fa fa-mobile"></i>{{item.mobile}}
                <button type="button"
                        class="button-small completePhoneBtn"
                        v-if="item.completeNumberShow"
                        @click="showCompleteNumModel(item)">补全号码</button>
                <button type="button"
                        class="button-small completePhoneBtn"
                        v-if="item.visitCompleteNumberShow"
                        @click="showCompleteNumModel(item)">补全号码</button>
              </p>
              <div @click="toCustomerDetail(item.id, item.premisesId)">
                <p class="source"><i class="fa fa-home"></i><span style="margin-left:9px;">报备项目：{{item.premisesName}}</span></p>
                <p class="source"><i class="fa fa-map-marker"></i>来源：{{item.staffCompanyName}}</p>
                <p class="partner"
                   v-show="item.partnerId!=null">代报备人：{{item.partnerName}} &nbsp;{{item.partnerPhone}}</p>
                <p class="partner"
                   v-show="item.partnerId!=null">经纪人：{{item.staffName}} &nbsp;{{item.staffPhone}}</p>

                <p class="partner"
                   v-show="item.partnerId==null">报备经纪人：{{item.staffName}} &nbsp;{{item.staffPhone}}</p>
                <p class="partner"
                   v-show="item.partnerId==null && item.principal != null">渠道经理：{{item.principal}}</p>
                <p class="confirm-time">
                  {{item.formatCreateTime}}
                </p>
              </div>
            </div>
            <div class="operation-btn">
              <a class="operation-btn-link"
                 v-if="item.reportValidShow"
                 @click="auditShow(item,-1)">无效</a>
              <a class="operation-btn-link"
                 v-if="item.visitedValidShow"
                 @click="auditShow(item,-1)">无效</a>
              <a class="operation-btn-link"
                 v-if="item.reportValidShow"
                 @click="auditShow(item, 10)">报备有效</a>
              <a class="operation-btn-link"
                 v-if="item.visitedValidShow"
                 @click="auditShow(item, 6)">到访有效</a>
            </div>
          </li>
        </ul>
      </mt-tab-container-item>
      <mt-tab-container-item id="pageB">
        <p>2</p>
      </mt-tab-container-item>
      <mt-tab-container-item id="pageC">
        <p>3</p>
      </mt-tab-container-item>
    </mt-tab-container>

    <!-- 弹出层 -->
    <div class="popup-page"
         v-if="completeNum.modelShow">
      <div class="popup-mask"></div>
      <div class="popup-container">
        <div class="popup-header">补全号码</div>
        <div class="popup-body">
          <div class="complete-information">
            <p>请将手机号中间{{differFix}}位补充完整</p>
            <div class="information-number">
              <span class="existingNumer">{{completeNum.mobilePrefix}}</span>
              <div class="number-list">
                <span class="number-list-item"
                      v-for="(item,index) in differFix">{{ completeNum.helfTel[index] || '' }}</span>
              </div>
              <span class="existingNumer">{{completeNum.mobileSuffix}}</span>
              <input type="tel"
                     :maxlength="differFix"
                     class="number-input-box"
                     v-model="completeNum.helfTel">
            </div>
          </div>
        </div>
        <div class="popup-footer">
          <a href="javascript:;"
             class="btn"
             @click="closeCompleteNumModel">取消</a>
          <a href="javascript:;"
             class="btn checkBtn"
             @click="completeNumber">确定</a>
        </div>
      </div>
    </div>
    <!-- 手机号验真 -->
    <div class="popup-page"
         v-if="checkMobile.modelShow">
      <div class="popup-mask"></div>
      <div class="popup-container">
        <div class="popup-header">号码验真</div>
        <div class="popup-body"
             style="padding: 16px 10px 10px">
          <div class="complete-information">
            <p>号码尚未验真,发送并校验验证码</p>
            <div class="information-number">
              <div class="number-list">
                <span class="number-list-item">{{ checkCode.codeA }}</span>
                <span class="number-list-item">{{ checkCode.codeB }}</span>
                <span class="number-list-item">{{ checkCode.codeC }}</span>
                <span class="number-list-item">{{ checkCode.codeD }}</span>
              </div>
              <button type="button"
                      class="btn checkMobileBtn"
                      v-bind:disabled="checkMobile.codeDis"
                      @click="sendCheckCode">{{ checkMobile.verificationCode }}</button>
              <input type="tel"
                     maxlength="4"
                     class="number-input-box"
                     v-model="checkMobile.checkCode">
              <input type="text"
                     name="curPreId"
                     v-model="checkMobile.curPreId">
            </div>
          </div>
        </div>
        <div class="popup-footer">
          <a href="javascript:;"
             class="btn"
             @click="closeCheckMobileModel">取消</a>
          <a href="javascript:;"
             class="btn checkBtn"
             @click="checkCheckCode">确定</a>
        </div>
      </div>
    </div>
    <!-- 无效操作原因 -->
    <div class="popup-page"
         v-if="isShow">
      <div class="popup-mask"
           @click="reportInvalidClose"></div>
      <div class="popup-container">
        <div class="popup-header">无效原因</div>
        <div class="popup-body">
          <ul class="invalid-list">
            <li v-for="(item,index) in options"
                @click="checkedState(item)"
                :class="{'active':item.isShow}">
              <i class="checkIcon"></i>{{item.name}}
              <input type="checkbox"
                     class="mint-checkbox-input"
                     v-model="item.isShow">
              <textarea v-if="index === 2"
                        class="reason"
                        rows="4"
                        v-model="invalidObj.reason"></textarea>
            </li>
          </ul>
        </div>
        <div class="popup-footer">
          <a href="javascript:;"
             class="btn"
             @click="reportInvalidClose">取消</a>
          <a href="javascript:;"
             class="btn checkBtn"
             @click="invalidReport">确定</a>
        </div>
      </div>
    </div>

    <!-- 状态变更备注 -->
    <div class="popup-page"
         v-if="auditObj.showModel">
      <div class="popup-mask"
           @click="auditClose"></div>
      <div class="popup-container">
        <div class="popup-header">审核备注</div>
        <div class="popup-body">
          <ul class="invalid-list">
            <li style="padding-left: 0px;">
              <textarea class="reason"
                        style="display: block;"
                        rows="4"
                        v-model="auditObj.remark"></textarea>
            </li>
          </ul>
        </div>
        <div class="popup-footer">
          <a href="javascript:;"
             class="btn"
             @click="auditClose">取消</a>
          <a href="javascript:;"
             class="btn checkBtn"
             @click="auditReport">确定</a>
        </div>
      </div>
    </div>

  </div>
</template>
<script>
import { Navbar, TabItem, InfiniteScroll, Toast } from "mint-ui";
export default {
  components: {
    Navbar,
    TabItem,
    InfiniteScroll
  },
  data() {
    return {
      selected: "pageA",
      isShow: false,
      params: {
        premisesIds: window.localStorage.getItem("2_premisesIds")
          ? window.localStorage.getItem("2_premisesIds").split(",")
          : [-1],
        customerStatus: "0, 10",
        searchContent: "",
        pageNo: 0,
        pageSize: 5,
        totalPages: ""
      },
      customerStatus: "",
      confirmList: [],
      completeNum: {
        modelShow: false,
        helfTel: "",
        mobilePrefix: "",
        mobileSuffix: "",
        row: {}
      },
      checkMobile: {
        id: "",
        row: {},
        modelShow: false,
        checkCode: "",
        codeDis: false,
        verificationCode: "发送验证码"
      },
      options: [
        {
          name: "无效电话号码",
          value: "0",
          isShow: true
        },
        {
          name: "无购房意向",
          value: "1",
          isShow: false
        },
        {
          name: "其他",
          value: "2",
          isShow: false
        }
      ],
      invalidObj: {
        curPreId: "",
        remark: "",
        row: {},
        reason: ""
      },
      auditObj: {
        showModel: false,
        remark: "",
        row: {},
        status: ""
      },
      differFix: 0
    };
  },
  watch: {
    "params.searchContent": function (newValue, oldValue) {
      var _self = this;
      _self.params.totalPages = "";
      _self.params.pageNo = 0;
      _self.confirmList = [];
      _self.findCusPreList();
    },
    "completeNum.helfTel": function (v) {
      console.log(v, 88);
    }
  },
  mounted: function () {
    this.customerStatus = this.$route.query.customerStatus;
  },
  computed: {
    userTel() {
      let numA, numB, numC, numD;
      if (this.completeNum.helfTel.length > 0) {
        numA = this.completeNum.helfTel.substring(0, 1);
        numB = this.completeNum.helfTel.substring(1, 2);
        numC = this.completeNum.helfTel.substring(2, 3);
        numD = this.completeNum.helfTel.substring(3, 4);
      }
      return {
        numA,
        numB,
        numC,
        numD
      };
    },
    checkCode() {
      let codeA, codeB, codeC, codeD;
      if (this.checkMobile.checkCode.length > 0) {
        codeA = this.checkMobile.checkCode.substring(0, 1);
        codeB = this.checkMobile.checkCode.substring(1, 2);
        codeC = this.checkMobile.checkCode.substring(2, 3);
        codeD = this.checkMobile.checkCode.substring(3, 4);
      }
      return {
        codeA,
        codeB,
        codeC,
        codeD
      };
    }
  },
  methods: {
    findCusPreList() {
      var _self = this;
      _self.loading = true;
      _self.params.pageNo += 1;
      if (_self.params.pageNo && _self.params.totalPages) {
        if (_self.params.pageNo >= _self.params.totalPages) {
          _self.loading = false;
          Toast({
            message: "数据已全部展示",
            position: "middle",
            duration: 2000
          });
          return false;
        }
      }
      var body = {};
      body.params = {
        pageNo: _self.params.pageNo,
        pageSize: _self.params.pageSize,
        premisesIds: _self.params.premisesIds,
        customerStatus: _self.$route.query.customerStatus,
        name: _self.params.searchContent,
        allPremisesFlag:
          window.localStorage.getItem("2_premisesName") == "已选择全部楼盘"
      };
      var url = _self.utilHelper.apiUrl + "/api/getAssistantAppReportPage";
      _self.$http.post(url, body).then((response) => {
        var body = response.body;
        var resData = body.resData;
        var resPage = resData.cpDtoPage;
        var resRows = resPage.rows;
        _self.params.totalPages = resPage.totalPages;
        if (resRows != null) {
          for (var i = 0; i < resRows.length; i++) {
            //报备状态
            var row = resRows[i];
            var customerStatus = row.customerStatus;
            var mobile = row.mobile;
            //无效按钮
            var reportInValidShow = false;
            //报备有效按钮
            var reportValidShow = false;
            //补全号码按钮
            var completeNumberShow = _self.$route.query.customerStatus == 0;
            var visitCompleteNumberShow =
              _self.$route.query.customerStatus == 10;
            console.log("visitCompleteNumberShow" + visitCompleteNumberShow);
            //到访有效按钮
            var visitedValidShow = false;
            //是否处于报备保护期
            var visitProtecting = row.visitProtecting;
            /*if(!visitProtecting){*/
            if ("0" == customerStatus) {
              reportValidShow = true;
              visitedValidShow = false;
            }
            if ("10" == customerStatus) {
              reportValidShow = false;
              visitedValidShow = true;
            }
            if (mobile.indexOf("*") >= 0 && !row.mobileHidden) {
              completeNumberShow = true && completeNumberShow;
              visitCompleteNumberShow = true && visitCompleteNumberShow;
            } else {
              completeNumberShow = false;
              visitCompleteNumberShow = false;
            }

            /*}else{
								row.customerStatusName = "报备保护期11";
								var reportInValidShow = false;
							}*/
            row.rowShow = true;
            row.reportInValidShow = reportInValidShow;
            row.completeNumberShow = completeNumberShow;
            row.visitCompleteNumberShow = visitCompleteNumberShow;
            row.reportValidShow = reportValidShow;
            row.visitedValidShow = visitedValidShow;
            _self.confirmList.push(row);
          }
        }
        _self.loading = false;
      });
    },
    checkedState(item) {
      this.options.forEach(function (options, index) {
        options.isShow = false;
      });
      item.isShow = true;
    },
    reportInvalidShow(row) {
      var _self = this;
      _self.isShow = true;
      _self.invalidObj.row = row;
    },
    reportInvalidClose() {
      this.isShow = false;
    },
    auditShow(row, status) {
      var _self = this;
      // 到访审核、楼盘要验真、报备无验真时间、不是隐号-->打开验真操作
      if (
        6 == status &&
        row.checkSwitch == "1" &&
        !row.lastCheckTime &&
        (row.mobile.indexOf("*") < 0 || row.mobileHidden)
      ) {
        _self.checkMobile.id = row.id;
        _self.checkMobile.modelShow = true;
        _self.checkMobile.row = row;
      } else {
        _self.$router.push({
          name: "auditReport",
          params: { cp: row, newStatus: status }
        });
      }
    },
    auditClose() {
      var _self = this;
      _self.auditObj.showModel = false;
    },
    invalidReport(row) {
      var _self = this;
      var invalidValue = "";
      var invalidReason = "";
      _self.options.forEach(function (options, index) {
        if (options.isShow == true) {
          invalidValue = options.value;
          invalidReason = options.name;
        }
      });
      if ("2" == invalidValue) {
        invalidReason = _self.invalidObj.reason;
        if (!invalidReason) {
          Toast({
            message: "请填写无效原因!",
            position: "middle",
            duration: 2000
          });
          return false;
        }
      }
      var body = {};
      body.params = {
        id: _self.invalidObj.row.id,
        customerStatus: "-1",
        remark: invalidReason
      };
      var url = _self.utilHelper.apiUrl + "/api/auditCP";
      _self.$http.post(url, body).then((response) => {
        var data = response.body.resData;
        var result = data.result;
        var errorMsg = data.resultMsg;
        if ("1" == result) {
          _self.findCusPreList();
          var instance = Toast("操作成功!");
          setTimeout(() => {
            instance.close();
          }, 2000);
          _self.invalidObj.row.rowShow = false;
          _self.isShow = false;
        } else {
          _self.findCusPreList();
          var instance = Toast(errorMsg);
          setTimeout(() => {
            instance.close();
          }, 2000);
        }
      });
    },
    auditReport() {
      var _self = this;
      var auditValue = "";
      var auditReason = "";
      auditReason = _self.auditObj.remark;
      //				if(!auditReason){
      //					Toast({
      //					  	message: "请填写审核备注!",
      //					  	position: 'middle',
      //					  	duration: 2000
      //					});
      //					return false;
      //				}
      var body = {};
      body.params = {
        id: _self.auditObj.row.id,
        customerStatus: _self.auditObj.status,
        remark: _self.auditObj.remark
      };
      var url = _self.utilHelper.apiUrl + "/api/auditCP";
      _self.$http.post(url, body).then((response) => {
        var data = response.body.resData;
        var result = data.result;
        var errorMsg = data.resultMsg;
        _self.auditObj.showModel = false;
        if ("1" == result) {
          Toast({
            message: "操作成功",
            duration: 1500
          });
          //报备有效,显示到访有效按钮
          if (body.params.customerStatus == "10") {
            _self.auditObj.remark = "";
            _self.auditObj.showModel = false;
            _self.auditObj.row.reportValidShow = false;
            var mobile = _self.auditObj.row.mobile;
            var mobileHidden = _self.auditObj.mobileHodden;
            if (mobile.indexOf("*") >= 0 && !mobileHidden) {
              _self.auditObj.row.completeNumberShow =
                true && _self.$route.query.customerStatus == 0;
              _self.auditObj.row.visitCompleteNumberShow =
                true && _self.$route.query.customerStatus == 10;
            } else {
              _self.auditObj.row.visitedValidShow = true;
            }
            _self.auditObj.row.customerStatusName = "报备有效";
          } else if (body.params.customerStatus == "6") {
            _self.auditObj.showModel = false;
            _self.auditObj.row.rowShow = false;
          }
        } else {
          _self.params.pageNo = 0;
          _self.confirmList = [];
          _self.findCusPreList();
          var instance = Toast(errorMsg);
          setTimeout(() => {
            instance.close();
          }, 1500);
        }
      });
    },
    showCompleteNumModel(row) {
      //补全号码
      const prefix = row.mobile.indexOf("*");
      const suffix = row.mobile.lastIndexOf("*");
      this.differFix = suffix - prefix + 1;
      var _self = this;
      _self.completeNum.modelShow = true;
      _self.completeNum.helfTel = "";
      //号码前三后四
      _self.completeNum.mobilePrefix = row.mobile.substring(0, prefix);
      _self.completeNum.mobileSuffix = row.mobile.substring(suffix + 1, 11);
      _self.completeNum.row = row;
    },
    closeCompleteNumModel() {
      var _self = this;
      _self.completeNum.modelShow = false;
    },
    completeNumber() {
      var _self = this;
      var curPreId = _self.completeNum.row.id;
      var wholeMobile =
        _self.completeNum.mobilePrefix +
        _self.completeNum.helfTel +
        _self.completeNum.mobileSuffix;
      if (!wholeMobile || wholeMobile.length != 11) {
        layer.msg("手机号不全，请补充完整");
        return false;
      }
      var body = {};
      body.params = {
        id: curPreId,
        mobile: wholeMobile
      };
      _self.completeNum.row.completeNumberShow = false;
      _self.completeNum.row.visitCompleteNumberShow = false;
      var url = _self.utilHelper.apiUrl + "/api/completePhone";
      _self.$http.post(url, body).then((response) => {
        var data = response.body.resData;
        var result = data.result;
        var errorMsg = data.resultMsg;
        _self.completeNum.modelShow = false;
        if ("1" == result) {
          var instance = Toast("操作成功!");
          setTimeout(() => {
            instance.close();
          }, 2000);
          //补全号码成功,显示无效、审核有效按钮
          _self.completeNum.row.completeNumberShow = false;
          _self.completeNum.row.visitCompleteNumberShow = false;
          _self.completeNum.row.mobile = wholeMobile;
          _self.completeNum.helfTel = "";
        } else {
          var instance = Toast(errorMsg);
          setTimeout(() => {
            instance.close();
          }, 2000);
          _self.completeNum.row.completeNumberShow =
            true && _self.$route.query.customerStatus == 0;
          self.completeNum.row.visitCompleteNumberShow =
            true && _self.$route.query.customerStatus == 10;
        }
      });
    },
    reportValid(row) {
      //报备有效
      var _self = this;
      var body = {};
      body.params = {
        id: row.id,
        customerStatus: "1"
      };
      row.reportValidShow = false;
      var url = _self.utilHelper.apiUrl + "/api/auditCP";
      _self.$http.post(url, body).then((response) => {
        var data = response.body.resData;
        var result = data.result;
        var errorMsg = data.resultMsg;
        if ("1" == result) {
          var instance = Toast("操作成功!");
          setTimeout(() => {
            instance.close();
          }, 2000);
          //报备有效,显示到访有效按钮
          row.visitedValidShow = true;
          row.customerStatusName = "报备有效";
        } else {
          var instance = Toast(errorMsg);
          row.reportValidShow = true;
          setTimeout(() => {
            instance.close();
          }, 2000);
        }
      });
    },
    visitedValid(row) {
      //到访有效
      var _self = this;
      var body = {};
      body.params = {
        id: row.id,
        customerStatus: "6"
      };
      row.visitedValidShow = false;
      var url = _self.utilHelper.apiUrl + "/api/auditCP";
      _self.$http.post(url, body).then((response) => {
        var data = response.body.resData;
        var result = data.result;
        var errorMsg = data.resultMsg;
        if ("1" == result) {
          var instance = Toast("操作成功!");
          //隐藏改行
          row.rowShow = false;
          setTimeout(() => {
            instance.close();
          }, 2000);
        } else {
          _self.confirmList = [];
          row.visitedValidShow = true;
          var instance = Toast(errorMsg);
          setTimeout(() => {
            instance.close();
          }, 2000);
        }
      });
    },
    toCustomerDetail(id, premisesId) {
      var _self = this;
      window.localStorage.setItem("2_premisesId", premisesId);
      _self.$router.push({
        path: "/customerDetails/" + id
      });
    },
    closeCheckMobileModel() {
      var _self = this;
      _self.checkMobile.modelShow = false;
    },
    sendCheckCode() {
      var _self = this;
      if (!_self.checkMobile.id) {
        layer.msg("报备记录错误,请重新打开!");
        return;
      }
      //设置不能点击
      _self.checkMobile.codeDis = "disabled";

      var body = {};
      var params = {
        id: _self.checkMobile.id
      };
      body.params = params;
      var url = _self.utilHelper.apiUrl + "/api/sendMobileCheckCode";
      _self.$http.post(url, body).then((response) => {
        var body = response.body;
        if (body.result == 1) {
          layer.msg(body.resData.resultMsg);
          _self.verificationCodeTimer(false);
        } else {
          _self.checkMobile.codeDis = false;
          layer.alert(body.resData.resultMsg, { icon: 5 });
        }
      }),
        (response) => {
          _self.checkMobile.codeDis = false;
          layer.alert("发送短信异常", { icon: 5 });
        };
    },
    checkCheckCode() {
      var _self = this;
      var body = {};
      var params = {
        id: _self.checkMobile.id,
        checkCode: _self.checkMobile.checkCode
      };
      if (!_self.checkMobile.checkCode) {
        Toast({
          message: "请输入验证码!",
          position: "middle",
          duration: 2000
        });
        return;
      }
      body.params = params;
      var url = _self.utilHelper.apiUrl + "/api/checkMobileCheckCode";
      _self.$http.post(url, body).then((response) => {
        var body = response.body;
        if (body.result == 1) {
          Toast({
            message: "号码验真成功",
            position: "middle",
            duration: 2000
          });
          _self.checkMobile.row.mobileCheck = "1";
          _self.checkMobile.row.lastCheckTime = new Date();
          _self.closeCheckMobileModel();
        } else {
          layer.msg("号码验真失败: " + body.resData.resultMsg);
        }
        _self.checkMobile.checkCode = "";
      }),
        (response) => {
          _self.codeDis = false;
          layer.alert("验真异常", { icon: 5 });
        };
    },
    //短信验证码定时器
    verificationCodeTimer: function (flag) {
      var _self = this;
      var date = 0;
      if (flag) {
        //页面刷新，或重进入时
        if (window.sessionStorage.getItem("checkMobileDate")) {
          //若缓存中不存在数据则 不进行倒计时
          date = window.sessionStorage.getItem("checkMobileDate");
          if (window.sessionStorage.getItem("checkMobileObj")) {
            _self.params.id = window.sessionStorage.getItem("checkMobileObj");
          }
        } else {
          return;
        }
      } else {
        //点击发送按钮时
        date = new Date().getTime() + 1000 * 30;
        window.sessionStorage.setItem("checkMobileDate", date);
        window.sessionStorage.setItem("checkMobileObj", _self.checkMobile.id);
        _self.timer = 40;
      }

      _self.checkMobile.codeDis = "disabled";
      var code = setInterval(function () {
        _self.timer = Math.ceil((date - new Date().getTime()) / 1000); //向上取整数
        if (_self.timer <= 0) {
          window.sessionStorage.removeItem("checkMobileDate");
          window.sessionStorage.removeItem("checkMobileObj");
          _self.checkMobile.verificationCode = "发送验证码";
          _self.checkMobile.codeDis = false;
          window.clearInterval(code);
        } else {
          _self.checkMobile.verificationCode = "重新获取(" + _self.timer + ")";
          _self.timer -= 1;
        }
      }, 1000);
    },
    toCopy(row) {
      console.log("row = ", row);
      this.$router.push({
        name: "CustomerModel",
        params: {
          cusPre: row
        }
      });
    }
  }
};
</script>
<style scoped>
.container {
  background-color: #f8f5f3;
  min-height: 600px;
}
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.searchDiv {
  height: 55px;
  background-color: #f8f5f3;
  padding: 10px;
  position: relative;
}
.searchDiv .input-wrap {
  width: 100%;
  height: 35px;
  border-radius: 40px;
  background-color: #fff;
  border: 1px solid #cdcdcd;
}
.input-wrap .input-text {
  color: #cdcdcd;
  display: block;
  line-height: 35px;
  padding-left: 14px;
}
.input-wrap .input-text .fa {
  margin-right: 10px;
  font-size: 18px;
}

.page-part {
  margin-top: 55px;
}
.mint-navbar .mint-tab-item.is-selected {
  border-bottom: 3px solid #eb6100;
  color: #eb6100;
}
.mint-navbar .mint-tab-item {
  padding: 13px 0;
}
.confirm-list li {
  border-top: 1px solid #cdcdcd;
  border-bottom: 1px solid #cdcdcd;
  margin-bottom: 10px;
}
.confirm-wrap {
  padding: 8px 10px;
  background-color: #fff;
  height: 160px;
  position: relative;
}
.confirm-info {
  height: 20px;
  line-height: 20px;
  padding-right: 138px;
  overflow: hidden;
  position: relative;
}
.confirm-info .fa-user-o {
  margin-right: 6px;
}
.confirm-info .name {
  color: #000;
  margin-right: 4px;
}
.confirm-info .sex {
  width: 16px;
  height: 14px;
  overflow: hidden;
  background: url(../assets/images/sex.png) no-repeat;
  background-size: 32px auto;
  display: inline-block;
  position: relative;
  top: 3px;
  margin-right: 2px;
  background-position: 0 0;
}
.confirm-info .sex.active {
  background-position: -16px 0;
}
.confirm-info .label {
  height: 14px;
  background-color: #65baf5;
  color: #fff;
  font-size: 12px;
  padding: 0 6px;
  position: relative;
  top: 1px;
  display: inline-block;
  line-height: 14px;
}
.confirm-report {
  position: absolute;
  right: 0;
  top: 0;
  height: 20px;
  width: 138px;
  font-size: 12px;
  color: #999;
  text-align: right;
}
.contact {
  padding: 8px 0;
  line-height: 16px;
  color: #333;
}
.contact .fa-mobile,
.source .fa-map-marker {
  margin-right: 10px;
  font-size: 20px;
}
.source {
  color: #999;
  line-height: 16px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partner {
  color: #00c2ff;
  line-height: 16px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 8px;
}
.confirm-time {
  position: absolute;
  right: 8px;
  padding: 0px 0;
  color: #999;
  bottom: 2px;
}

.operation-btn {
  padding: 6px 10px;
  background-color: #fffef6;
  border-top: 1px solid #cdcdcd;
}
.operation-btn .operation-btn-link {
  width: 50%;
  float: left;
  text-align: center;
  height: 24px;
  line-height: 24px;
  border-right: 1px solid #cdcdcd;
  color: #eb6100;
  font-size: 14px;
}
.operation-btn .operation-btn-link:last-child {
  border-right: none;
}
.operation-btn:after {
  content: "";
  display: block;
  clear: both;
  visibility: hidden;
  overflow: hidden;
  font-size: 0;
  height: 0;
}

/*弹出层*/
.popup-page,
.popup-mask {
  position: fixed;
  z-index: 99;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.popup-mask {
  background-color: #000;
  opacity: 0.3;
}
.popup-container {
  width: 260px;
  position: relative;
  background-color: #fff;
  top: 160px;
  left: 50%;
  margin-left: -130px;
  z-index: 100;
  border-radius: 6px;
}
.popup-header {
  padding: 12px 20px;
  border-bottom: 1px solid #cdcdcd;
}
.popup-body {
  padding: 16px 20px 10px;
}
.popup-footer {
  width: 100%;
  border-top: 1px solid #cdcdcd;
}
.popup-footer .btn {
  width: 50%;
  text-align: center;
  float: left;
  padding: 12px 0;
  font-size: 16px;
  color: #999;
}
.popup-footer .checkBtn {
  color: #eb6100;
}
.popup-footer .btn:first-child {
  border-right: 1px solid #cdcdcd;
}
.popup-footer:after {
  content: "";
  display: block;
  clear: both;
  visibility: hidden;
  overflow: hidden;
  font-size: 0;
  height: 0;
}

.complete-information {
  text-align: center;
}
.information-number {
  position: relative;
  line-height: 34px;
  padding-left: 8px;
  margin-top: 8px;
}
.information-number .existingNumer,
.information-number .number-list {
  float: left;
}
.existingNumer {
  display: inline-block;
}
.number-list {
  display: inline-block;
  border-radius: 4px;
  border: 1px solid #cdcdcd;
  height: 34px;
  line-height: 32px;
  margin: 0 6px;
}
.number-list .number-list-item {
  width: 30px;
  height: 100%;
  display: inline-block;
  border-right: 1px solid #cdcdcd;
  float: left;
}
.number-list .number-list-item:last-child {
  border-right: none;
}
.number-input-box {
  position: absolute;
  height: 34px;
  left: 40px;
  width: 135px;
  opacity: 0;
}

.footer-content:after,
.information-number:after {
  content: "";
  display: block;
  clear: both;
  visibility: hidden;
  overflow: hidden;
  font-size: 0;
  height: 0;
}

/*弹出层*/
.invalid-list li {
  position: relative;
  padding-left: 24px;
  line-height: 20px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}
.checkIcon {
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  background: url(../assets/images/checked.png) no-repeat;
  background-position: 0 0;
  background-size: 36px auto;
  top: 1px;
}
.invalid-list li:last-child {
  margin-bottom: 0;
}
.invalid-list .active .checkIcon {
  background-position: -18px 0;
}
.invalid-list .reason {
  border: 1px solid #cdcdcd;
  width: 100%;
  margin-top: 4px;
  display: none;
}
.invalid-list .active .reason {
  display: block;
}

.checkMobileBtn {
  width: 90px;
  height: 30px;
  color: #fff;
  background-color: #eb6100;
  border-radius: 10px;
}

.completePhoneBtn {
  float: right;
  width: 70px;
  height: 20px;
  color: #fff;
  background-color: #ff962e;
  border-radius: 4px;
  margin: 0;
}

.copy-btn {
  position: absolute;
  top: 0;
  right: 0;
}
.copy-btn-copyed {
  background-color: #facd91;
}
</style>